 
package com.mixide.ui.part.register;

import javax.inject.Inject;

import org.eclipse.swt.widgets.Composite;

import javax.annotation.PostConstruct;

import com.mixide.ui.service.MixHolder;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor(onConstructor_=@Inject)
public class RegisterPart {
	
	private final MixHolder mix;
	private final RegisterLabelProvider labelProvider;
	
	@PostConstruct
	public void postConstruct(Composite parent) {
		this.initRegistersComposite(parent);
	}
	
	private void initRegistersComposite(Composite parent) {
		new RegisterTableViewer(parent, this.mix.mix(), this.labelProvider);
	}
}